<template>
  <view class="wrapper" id="wrapper" ref="scrollRef">
    <ul class="list">
      <view class="item" v-for="i in 10" :key="i">hahahah{{ i }}</view>
    </ul>
  </view>
</template>
<script setup lang="ts">
import { ref, getCurrentInstance } from 'vue'
import { onReady } from "@dcloudio/uni-app";
</script>
<style>
.wrapper {
  padding: 40rpx 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.list {
  display: inline-flex;
  /* overflow-x: auto; */
  /* width: 100%; */

}

@keyframes openAnimation {
  0% {
    transform: translateX(-600%);
  }

  100% {
    transform: translateX(300%);
  }
}

.item {
  padding: 11rpx 30rpx;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 26px;
  min-width: 200rpx;
  margin-right: 12rpx;
  text-align: center;
  animation-name: openAnimation;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-duration: 10s;
}
</style>